<?php $this->load->view(TEMPLATE_NAME.'/front/header'); ?>
<?php $this->load->view(TEMPLATE_NAME.'/front/side_left'); ?>
<div class="page">
<h2>Post News </h2>

<!--<div class="clear"></div>-->
<?php $this->load->view(TEMPLATE_NAME.'/front/news_header'); 
//$insertnewsid = $this->session->userdata('newsid');
//$news_keywords = $this->News_model->get_all_news($insertnewsid);
$keywordparts = explode(",",$news_keywords[0]['page_meta_keyword']);
?>
<!--<div>-->
<p class="phase"><strong>Keywords</strong> - <span class="purple">Input upto 8 characters that relates to this article below(Optional)</span><br />Keywords help search engine like Google to direct people to your article.<br />
Use words like place names or words that sum up your news quickly </p><!--</div>-->
<!--<div class="clear"></div>
<div class="clear"></div>
<div>-->

<?php
$attributes = array('class' => 'posts longs2');
echo form_open('news/news_keywords',$attributes); 
?>
<!--<div style="width:250px; float:left">-->
<div class="key"> 
<label>Keyword 1: </label> <?php $keyword1_input = array(
	'id'=>'Keyword1',
	'name'=>'keyword1',
	);
echo form_input($keyword1_input,$keywordparts[0],'tabindex="1"'); ?></div>

<!--<div style="width:250px; float:left">--><div class="key keyr"><label>Keyword 2:</label> <?php $keyword2_input = array(
    'id'=>'Keyword2',
    'name'=>'keyword2',
    );
echo form_input($keyword2_input,$keywordparts[1],'tabindex="2"'); ?></div>

<!--<div style="width:250px; float:left">--><div class="key"><label>Keyword 3:</label> <?php $keyword3_input = array(
    'id'=>'Keyword3',
    'name'=>'keyword3',
    );
echo form_input($keyword3_input,$keywordparts[2],'tabindex="3"'); ?></div>

<!--<div style="width:250px; float:left">--><div class="key keyr"><label>Keyword 4:</label> <?php $keyword4_input = array(
    'id'=>'Keyword4',
    'name'=>'keyword4',
    );
echo form_input($keyword4_input,$keywordparts[3],'tabindex="4"'); ?></div>

<!--<div style="width:250px;float:left">--><div class="key"><label>Keyword 5:</label> <?php $keyword5_input = array(
	'id'=>'Keyword5',
	'name'=>'keyword5',
	);
echo form_input($keyword5_input,$keywordparts[4],'tabindex="5"'); ?></div>
<!--<div class="clear" style="padding:5px"></div> -->

<!--<div style="width:250px;float:left">--><div class="key keyr"><label>Keyword 6:</label><?php $keyword6_input = array(
	'id'=>'Keyword6',
	'name'=>'keyword6',
	);
echo form_input($keyword6_input,$keywordparts[5],'tabindex="6"'); ?></div>
<!--<div class="clear" style="padding:5px"></div>-->
<!--<div style="width:250px;float:left">--><div class="key"><label>Keyword 7:</label> <?php $keyword7_input = array(
	'id'=>'Keyword7',
	'name'=>'keyword7',
	);
echo form_input($keyword7_input,$keywordparts[6],'tabindex="7"'); ?></div>
<!--<div class="clear" style="padding:5px"></div>-->
<!--<div style="width:250px;float:left">--><div class="key keyr"><label>Keyword 8:</label> <?php $keyword8_input = array(
	'id'=>'Keyword8',
	'name'=>'keyword8',
	);
echo form_input($keyword8_input,$keywordparts[7],'tabindex="8"'); ?></div>
<div class="clear"></div>
<!--<div>--><hr  style="margin:0" />
<?php echo form_submit('newkeywords', 'Submit'); ?> <!--</div>-->
<?php echo form_close(); ?> 
<!--</div>
<div class="clear"></div>-->
    <?php $this->load->view(TEMPLATE_NAME.'/front/footer_menu');?>
</div><!-- page -->

<?php $this->load->view(TEMPLATE_NAME.'/front/side_right');?> 
<?php $this->load->view(TEMPLATE_NAME.'/front/footer');?> 
